package com.books.test;

import com.books.mapper.login_regis.UserLoginMapper;
import com.books.model.bo.Result;
import com.books.model.entity.login_regis.UserLogin;
import com.books.service.login_regis.IUserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ZhouRui
 * @title: 码上就来
 * @projectName cbstore-spring-boot
 * @description: TODO
 * @date 2021/10/118:55
 */
@RestController
@RequestMapping("/uuu")
public class postmanTes {

    @Autowired(required = false)
    private UserLoginMapper userLoginMapper;

    @GetMapping
    @ResponseBody
    public Result get(){

        List<UserLogin> users = userLoginMapper.selectList(null);

        return new Result("200","查询成功",users);
    }
}
